package model

type TableUser struct {
	Id              uint64 `json:"id" gorm:"primaryKey"`
	Name            string `json:"name"`
	Password        string `json:"password"`
	FollowCount     int64  `json:"follow_count,omitempty"`
	FollowerCount   int64  `json:"follower_count,omitempty"`
	IsFollow        bool   `json:"is_follow,omitempty"`
	Avatar          string `json:"avatar"`
	Signature       string `json:"signature"`
	BackgroundImage string `json:"backgroundImage"`
	TotalFavorited  string `json:"total_favorited"`
	WorkCount       int64  `json:"work_count"`
	FavoriteCount   int64  `json:"favorite_count"`
}

// TableName 修改表名映射
func (user TableUser) TableName() string {
	return "users"
}
